package edu.mse.camel.client.posterboard.ui.editor;

import org.eclipse.draw2d.ScalableFigure;
import org.eclipse.draw2d.Viewport;
import org.eclipse.gef.editparts.ScalableFreeformRootEditPart;
import org.eclipse.gef.editparts.ZoomManager;
import org.eclipse.gmf.runtime.gef.ui.internal.editparts.AnimatableZoomManager;

public class PBScalableRootEditPart extends ScalableFreeformRootEditPart {

	private ZoomManager zoomManager;
	
	@Override
	public ZoomManager getZoomManager() {
		if (zoomManager == null) {
            zoomManager = new AnimatableZoomManager((ScalableFigure ) getScaledLayers(), 
            		(Viewport )getFigure ());
            zoomManager.setZoomAnimationStyle (ZoomManager.ANIMATE_ZOOM_IN_OUT);

        }

        return zoomManager;
	}

}
